package com.coin.mapper;

import com.coin.domain.SysRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author 李力
 * @description 针对表【sys_role(角色)】的数据库操作Mapper
 * @createDate 2025-05-24 17:08:03
 * @Entity com.coin.domain.SysRole
 */
public interface SysRoleMapper extends BaseMapper<SysRole> {

    /**
     * @Description: 根据用户ID查询用户code
     * @Author: 李 力
     * @Date: 2025/5/26
     * @Param: userId
     * @return: String
     */
    String getUserCodeById(@Param("userId") Long userId);
}




